<template>
  <view class="container">
    <custom-form></custom-form>
    <view class="content">
      <button @click="onButtonClick" type="primary">luch-request 测试</button>
    </view>
  </view>
</template>

<script setup>
  import {
    http
  } from '@/utils/http.js'

  function onButtonClick() {
    // 1. 普通用法
    http.request({
      url: '/echo',
      method: 'GET',
      header: {
        customHeader: '22222222'
      }
    })
  }
</script>

<style lang="scss" scoped>

</style>